i2c: bcm2835: Add support for dynamic clock
authorNoralf Trønnes <noralf@tronnes.org>
Mon, 26 Sep 2016 23:00:08 +0000 (01:00 +0200)
committerpopcornmix <popcornmix@gmail.com>
Mon, 20 Feb 2017 20:28:42 +0000 (20:28 +0000)
commitfdebd3644b5fc8a67bec619e56e958f3291521a4
tree8af671b12e931adf3bab380e2460f92cd778662a
parent0c4758c69781808ee4293b746e3b16c77e304839
i2c: bcm2835: Add support for dynamic clock

Support a dynamic clock by reading the frequency and setting the
divisor in the transfer function instead of during probe.

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Reviewed-by: Martin Sperl <kernel@martin.sperl.org>
drivers/i2c/busses/i2c-bcm2835.c